package com.stedu;

import com.stedu.exception.SteduException;
import com.stedu.mapper.AdminStudentMapper;
import com.stedu.service.AdminStudentService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class SelectClassApplicationTests4 {
    @Autowired
    private AdminStudentMapper adminStudentMapper;
    @Autowired
    private AdminStudentService adminStudentService;
    @Test
    public void test1(){
        System.out.println(adminStudentMapper.selectBySno("21061811"));
    }
    @Test
    public void test2() throws SteduException {
        System.out.println(adminStudentService.loginStudent("21061811","123456"));
    }
}
